package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.MaintenanceEntity;

/**
 * Created by shao-yikun on 2017/4/7.
 */
public class MaintenanceDto {
    private Integer maintenanceId;
    private Integer roadSignId;
    private String maintenanceReason;
    private Integer maintenanceLevel;
    private Integer maintenanceType;
    private String maintenancePic;
    private String maintenanceContent;
    private String maintenanceFeedback;
    private String maintenanceExplain;
    private Integer maintenanceSignStatus;
    private String maintenanceTime;
    private Integer maintenanceStatus;
    private Integer maintenancePeopleId;
    private String maintenanceCreateTime;
    private String signFaultPic;
    private Double repairAmount;
    private Integer roadPoleId;     //外键roadSignId对应的标杆Id
    private String longitude;       //外键roadSignId对应的经度
    private String latitude;        //外键roadSignId对应的纬度
    private String province;        //外键roadSignId对应的省
    private String city;            //外键roadSignId对应的市
    private String area;            //外键roadSignId对应的区
    private String roadName;        //外键roadSignId对应的路名
    private String startRoad;       //外键roadSignId对应的起始路名
    private String endRoad;         //外键roadSignId对应的结束路名
    private String roadSignPic;     //外键roadSignId对应的标牌图片
    private String userName;        //外键maintenancePeopleId对应用户名\
    private String orgName;         //公司名
    private Integer roadPoleShape;  //标杆形状
    private String roadPoleSize;    //标杆尺寸
    private String roadPolePic;     //标杆图片
    private String mainOrgName;     //监管单位名称
    private String creatorName;

    public MaintenanceDto() {
    }


    public MaintenanceDto(Integer maintenanceId, Integer roadSignId, String maintenanceReason, Integer maintenanceLevel, Integer maintenanceType, String maintenancePic, String maintenanceContent, String maintenanceFeedback, Integer maintenanceSignStatus, String maintenanceTime, Integer maintenanceStatus, Integer maintenancePeopleId, String maintenanceCreateTime, Integer companyCheck, Integer mainCheck, Integer mainPerson, Integer companyPerson, String companyPersonName, String mainPersonName, String maintenancePeopleName, Integer signFaultId) {
        this.maintenanceId = maintenanceId;
        this.roadSignId = roadSignId;
        this.maintenanceReason = maintenanceReason;
        this.maintenanceLevel = maintenanceLevel;
        this.maintenanceType = maintenanceType;
        this.maintenancePic = maintenancePic;
        this.maintenanceContent = maintenanceContent;
        this.maintenanceFeedback = maintenanceFeedback;
        this.maintenanceSignStatus = maintenanceSignStatus;
        this.maintenanceTime = maintenanceTime;
        this.maintenanceStatus = maintenanceStatus;
        this.maintenancePeopleId = maintenancePeopleId;
        this.maintenanceCreateTime = maintenanceCreateTime;
    }

    public MaintenanceDto(Integer maintenanceId, Integer roadSignId, String maintenanceReason, Integer maintenanceLevel, Integer maintenanceType, String roadSignPic, String maintenanceCreateTime) {
        this.maintenanceId = maintenanceId;
        this.roadSignId = roadSignId;
        this.maintenanceReason = maintenanceReason;
        this.maintenanceLevel = maintenanceLevel;
        this.maintenanceType = maintenanceType;
        this.roadSignPic = roadSignPic;
        this.maintenanceCreateTime = maintenanceCreateTime;
    }

    public MaintenanceDto(Integer maintenanceId, String maintenanceReason, Integer roadSignId, Integer maintenanceLevel, Integer maintenanceType, String roadSignPic, String maintenanceTime) {
        this.maintenanceId = maintenanceId;
        this.maintenanceReason = maintenanceReason;
        this.roadSignId = roadSignId;
        this.maintenanceLevel = maintenanceLevel;
        this.maintenanceType = maintenanceType;
        this.roadSignPic = roadSignPic;
        this.maintenanceTime = maintenanceTime;
    }

    public MaintenanceDto(Integer maintenanceId, Integer roadSignId, String maintenanceReason, Integer maintenanceLevel,
                          Integer maintenanceType, String signFaultPic, String maintenanceFeedback, String maintenanceCreateTime) {
        this.maintenanceId = maintenanceId;
        this.roadSignId = roadSignId;
        this.maintenanceReason = maintenanceReason;
        this.maintenanceLevel = maintenanceLevel;
        this.maintenanceType = maintenanceType;
        this.signFaultPic = signFaultPic;
        this.maintenanceFeedback = maintenanceFeedback;
        this.maintenanceCreateTime = maintenanceCreateTime;
    }

    public MaintenanceDto(String maintenanceTime, Double repairAmount) {
        this.maintenanceTime = maintenanceTime;
        this.repairAmount = repairAmount;
    }

    public MaintenanceDto(Integer maintenanceId, Integer roadSignId, String maintenanceReason, Integer maintenanceLevel, Integer maintenanceType, String maintenancePic, String maintenanceContent, String maintenanceFeedback, String maintenanceExplain, Integer maintenanceSignStatus, String maintenanceTime, Integer maintenanceStatus, Integer maintenancePeopleId, String maintenanceCreateTime, String signFaultPic, Integer roadPoleId, String longitude, String latitude, String province, String city, String area, String roadName, String startRoad, String endRoad, String roadSignPic) {
        this.maintenanceId = maintenanceId;
        this.roadSignId = roadSignId;
        this.maintenanceReason = maintenanceReason;
        this.maintenanceLevel = maintenanceLevel;
        this.maintenanceType = maintenanceType;
        this.maintenancePic = maintenancePic;
        this.maintenanceContent = maintenanceContent;
        this.maintenanceFeedback = maintenanceFeedback;
        this.maintenanceExplain = maintenanceExplain;
        this.maintenanceSignStatus = maintenanceSignStatus;
        this.maintenanceTime = maintenanceTime;
        this.maintenanceStatus = maintenanceStatus;
        this.maintenancePeopleId = maintenancePeopleId;
        this.maintenanceCreateTime = maintenanceCreateTime;
        this.signFaultPic = signFaultPic;
        this.roadPoleId = roadPoleId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.province = province;
        this.city = city;
        this.area = area;
        this.roadName = roadName;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
        this.roadSignPic = roadSignPic;
    }

    public MaintenanceDto(Integer maintenanceId, Integer roadSignId, String maintenanceReason, Integer maintenanceLevel, Integer maintenanceType, String maintenancePic, String maintenanceContent, String maintenanceFeedback, String maintenanceExplain, Integer maintenanceSignStatus, String maintenanceTime, Integer maintenanceStatus, Integer maintenancePeopleId, String maintenanceCreateTime, String signFaultPic, Integer roadPoleId, String longitude, String latitude, String province, String city, String area, String roadName, String startRoad, String endRoad, String roadSignPic, String userName) {
        this.maintenanceId = maintenanceId;
        this.roadSignId = roadSignId;
        this.maintenanceReason = maintenanceReason;
        this.maintenanceLevel = maintenanceLevel;
        this.maintenanceType = maintenanceType;
        this.maintenancePic = maintenancePic;
        this.maintenanceContent = maintenanceContent;
        this.maintenanceFeedback = maintenanceFeedback;
        this.maintenanceExplain = maintenanceExplain;
        this.maintenanceSignStatus = maintenanceSignStatus;
        this.maintenanceTime = maintenanceTime;
        this.maintenanceStatus = maintenanceStatus;
        this.maintenancePeopleId = maintenancePeopleId;
        this.maintenanceCreateTime = maintenanceCreateTime;
        this.signFaultPic = signFaultPic;
        this.roadPoleId = roadPoleId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.province = province;
        this.city = city;
        this.area = area;
        this.roadName = roadName;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
        this.roadSignPic = roadSignPic;
        this.userName = userName;
    }

    public MaintenanceDto(String maintenanceContent, String maintenanceFeedback, String maintenanceTime, Integer maintenanceStatus, String maintenanceCreateTime) {
        this.maintenanceContent = maintenanceContent;
        this.maintenanceFeedback = maintenanceFeedback;
        this.maintenanceTime = maintenanceTime;
        this.maintenanceStatus = maintenanceStatus;
        this.maintenanceCreateTime = maintenanceCreateTime;
    }

    public MaintenanceDto(Integer maintenanceId, Integer maintenanceType, String maintenanceTime) {
        this.maintenanceId = maintenanceId;
        this.maintenanceType = maintenanceType;
        this.maintenanceTime = maintenanceTime;
    }

    /**
     * @Description: 标牌故障维修统计
     * @Author: lin-anqian
     * @Date: 2017/5/6 20:56
     */
    public MaintenanceDto(Integer maintenanceId, String signFaultPic, String maintenancePic, Integer maintenanceSignStatus,
                          String maintenanceTime, String orgName, Integer roadSignId, Integer roadPoleId, String roadName,
                          String endRoad, String startRoad, String area, String city, String province, Integer roadPoleShape,
                          String UserName, String roadPoleSize, String roadPolePic, String roadSignPic) {
        this.maintenanceId = maintenanceId;
        this.maintenancePic = maintenancePic;
        this.maintenanceSignStatus = maintenanceSignStatus;
        this.maintenanceTime = maintenanceTime;
        this.signFaultPic = signFaultPic;
        this.orgName = orgName;
        this.roadPoleId = roadPoleId;
        this.roadName = roadName;
        this.endRoad = endRoad;
        this.startRoad = startRoad;
        this.roadSignId = roadSignId;
        this.area = area;
        this.city = city;
        this.province = province;
        this.roadPoleShape = roadPoleShape;
        this.userName = UserName;
        this.roadPoleSize = roadPoleSize;
        this.roadPolePic = roadPolePic;
        this.roadSignPic = roadSignPic;
    }

    public Integer getMaintenanceId() {
        return maintenanceId;
    }

    public void setMaintenanceId(Integer maintenanceId) {
        this.maintenanceId = maintenanceId;
    }

    public Integer getRoadSignId() {
        return roadSignId;
    }

    public void setRoadSignId(Integer roadSignId) {
        this.roadSignId = roadSignId;
    }

    public String getMaintenanceReason() {
        return maintenanceReason;
    }

    public void setMaintenanceReason(String maintenanceReason) {
        this.maintenanceReason = maintenanceReason;
    }

    public Integer getMaintenanceLevel() {
        return maintenanceLevel;
    }

    public void setMaintenanceLevel(Integer maintenanceLevel) {
        this.maintenanceLevel = maintenanceLevel;
    }

    public Integer getMaintenanceType() {
        return maintenanceType;
    }

    public void setMaintenanceType(Integer maintenanceType) {
        this.maintenanceType = maintenanceType;
    }

    public String getMaintenancePic() {
        return maintenancePic;
    }

    public void setMaintenancePic(String maintenancePic) {
        this.maintenancePic = maintenancePic;
    }

    public String getMaintenanceContent() {
        return maintenanceContent;
    }

    public void setMaintenanceContent(String maintenanceContent) {
        this.maintenanceContent = maintenanceContent;
    }

    public String getMaintenanceFeedback() {
        return maintenanceFeedback;
    }

    public void setMaintenanceFeedback(String maintenanceFeedback) {
        this.maintenanceFeedback = maintenanceFeedback;
    }

    public Integer getMaintenanceSignStatus() {
        return maintenanceSignStatus;
    }

    public void setMaintenanceSignStatus(Integer maintenanceSignStatus) {
        this.maintenanceSignStatus = maintenanceSignStatus;
    }

    public Double getRepairAmount() {
        return repairAmount;
    }

    public void setRepairAmount(Double repairAmount) {
        this.repairAmount = repairAmount;
    }

    public String getMaintenanceTime() {
        return maintenanceTime;
    }

    public void setMaintenanceTime(String maintenanceTime) {
        this.maintenanceTime = maintenanceTime;
    }

    public Integer getMaintenanceStatus() {
        return maintenanceStatus;
    }

    public void setMaintenanceStatus(Integer maintenanceStatus) {
        this.maintenanceStatus = maintenanceStatus;
    }

    public Integer getMaintenancePeopleId() {
        return maintenancePeopleId;
    }

    public void setMaintenancePeopleId(Integer maintenancePeopleId) {
        this.maintenancePeopleId = maintenancePeopleId;
    }

    public String getMaintenanceCreateTime() {
        return maintenanceCreateTime;
    }

    public void setMaintenanceCreateTime(String maintenanceCreateTime) {
        this.maintenanceCreateTime = maintenanceCreateTime;
    }

    public Integer getRoadPoleId() {
        return roadPoleId;
    }

    public void setRoadPoleId(Integer roadPoleId) {
        this.roadPoleId = roadPoleId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public String getStartRoad() {
        return startRoad;
    }

    public void setStartRoad(String startRoad) {
        this.startRoad = startRoad;
    }

    public String getEndRoad() {
        return endRoad;
    }

    public void setEndRoad(String endRoad) {
        this.endRoad = endRoad;
    }

    public String getRoadSignPic() {
        return roadSignPic;
    }

    public void setRoadSignPic(String roadSignPic) {
        this.roadSignPic = roadSignPic;
    }

    public String getSignFaultPic() {
        return signFaultPic;
    }

    public void setSignFaultPic(String signFaultPic) {
        this.signFaultPic = signFaultPic;
    }

    public String getMaintenanceExplain() {
        return maintenanceExplain;
    }

    public void setMaintenanceExplain(String maintenanceExplain) {
        this.maintenanceExplain = maintenanceExplain;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getRoadPoleShape() {
        return roadPoleShape;
    }

    public void setRoadPoleShape(Integer roadPoleShape) {
        this.roadPoleShape = roadPoleShape;
    }

    public String getRoadPoleSize() {
        return roadPoleSize;
    }

    public void setRoadPoleSize(String roadPoleSize) {
        this.roadPoleSize = roadPoleSize;
    }

    public String getRoadPolePic() {
        return roadPolePic;
    }

    public void setRoadPolePic(String roadPolePic) {
        this.roadPolePic = roadPolePic;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public MaintenanceEntity toBean() {
        MaintenanceEntity maintenanceEntity = new MaintenanceEntity();
        maintenanceEntity.setMaintenanceId(maintenanceId);
        maintenanceEntity.setRoadSignId(roadSignId);
        maintenanceEntity.setMaintenanceReason(maintenanceReason);
        maintenanceEntity.setMaintenanceLevel(maintenanceLevel);
        maintenanceEntity.setMaintenanceType(maintenanceType);
        maintenanceEntity.setMaintenancePic(maintenancePic);
        maintenanceEntity.setMaintenanceContent(maintenanceContent);
        maintenanceEntity.setMaintenanceFeedback(maintenanceFeedback);
        maintenanceEntity.setMaintenanceSignStatus(maintenanceSignStatus);
        maintenanceEntity.setMaintenanceTime(maintenanceTime);
        maintenanceEntity.setMaintenanceStatus(maintenanceStatus);
        maintenanceEntity.setMaintenancePeopleId(maintenancePeopleId);
        maintenanceEntity.setMaintenanceCreateTime(maintenanceCreateTime);
        maintenanceEntity.setMaintenanceExplain(maintenanceExplain);
        return maintenanceEntity;
    }

    public String getMainOrgName() {
        return mainOrgName;
    }

    public void setMainOrgName(String mainOrgName) {
        this.mainOrgName = mainOrgName;
    }

    @Override
    public String toString() {
        return "MaintenanceDto{" +
                "maintenanceId=" + maintenanceId +
                ", roadSignId=" + roadSignId +
                ", maintenanceReason='" + maintenanceReason + '\'' +
                ", maintenanceLevel=" + maintenanceLevel +
                ", maintenanceType=" + maintenanceType +
                ", maintenancePic='" + maintenancePic + '\'' +
                ", maintenanceContent='" + maintenanceContent + '\'' +
                ", maintenanceFeedback='" + maintenanceFeedback + '\'' +
                ", maintenanceExplain='" + maintenanceExplain + '\'' +
                ", maintenanceSignStatus=" + maintenanceSignStatus +
                ", maintenanceTime='" + maintenanceTime + '\'' +
                ", maintenanceStatus=" + maintenanceStatus +
                ", maintenancePeopleId=" + maintenancePeopleId +
                ", maintenanceCreateTime='" + maintenanceCreateTime + '\'' +
                ", signFaultPic='" + signFaultPic + '\'' +
                ", roadPoleId=" + roadPoleId +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", roadName='" + roadName + '\'' +
                ", startRoad='" + startRoad + '\'' +
                ", endRoad='" + endRoad + '\'' +
                ", roadSignPic='" + roadSignPic + '\'' +
                ", userName='" + userName + '\'' +
                '}';
    }
}
